package java9_7;

public class Test_4 {
    public static void main(String[] args) {
        StringBuffer a=new StringBuffer();
        StringBuilder b=new StringBuilder();
        long start=System.nanoTime();
        for (int i=0;i<100000;i++){
            a.append("时间");
        }
        long end=System.nanoTime();
        System.out.println(end-start);
        long start1=System.nanoTime();
        for (int i=0;i<100000;i++){
            a.append("时间");
        }
        long end1=System.nanoTime();
        System.out.println(end1-start1);
    }
}
